package com.dragon.modules.yuegou.model.member;

import com.dragon.modules.yuegou.entity.member.LiftConditionsEntity;
import com.dragon.modules.yuegou.enums.member.LiftConditionsConditionsTime;
import com.dragon.modules.yuegou.enums.member.LiftConditionsConditionsType;
import com.dragon.modules.yuegou.enums.member.LiftConditionsLiftType;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 升降条件模型类
 * 
 * @author pbuilder generated
 * @date 2019-11-19 10:02:55
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class LiftConditions extends LiftConditionsEntity {

	/**
	 * 构造一个空升降条件模型对象
	 */
	public LiftConditions(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个升降条件模型对象
	 * 
	 * @param entity 实体对象
	 */
	public LiftConditions(LiftConditionsEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个升降条件模型对象
	 * 
	 * @param other 其它对象
	 */
	public LiftConditions(LiftConditions other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public LiftConditions id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getLiftId() {
    	return liftId;
    }

    /**
	 * 设置
	 * 
	 * @param liftId 
	 * @return 当前对象
	 */
    public LiftConditions liftId(String liftId) {
    	this.liftId = liftId;
    	return this;
    }

	@Override
	public LiftConditionsConditionsTime getConditionsTime() {
    	return conditionsTime;
    }

    /**
	 * 设置[枚举]会员等级条件时间：1-某天-ONEDAY、2-每天-EVERYDAY、3-某月-ONEMONTH、4-每月-EVERYMONTH
	 * 
	 * @param conditionsTime [枚举]会员等级条件时间：1-某天-ONEDAY、2-每天-EVERYDAY、3-某月-ONEMONTH、4-每月-EVERYMONTH
	 * @return 当前对象
	 */
    public LiftConditions conditionsTime(LiftConditionsConditionsTime conditionsTime) {
    	this.conditionsTime = conditionsTime;
    	return this;
    }

	@Override
	public LiftConditionsConditionsType getConditionsType() {
    	return conditionsType;
    }

    /**
	 * 设置[枚举]会员等级条件类型：1-累计积分-CUMULATIVE、2-单笔消费-SINGLE
	 * 
	 * @param conditionsType [枚举]会员等级条件类型：1-累计积分-CUMULATIVE、2-单笔消费-SINGLE
	 * @return 当前对象
	 */
    public LiftConditions conditionsType(LiftConditionsConditionsType conditionsType) {
    	this.conditionsType = conditionsType;
    	return this;
    }

	@Override
	public LiftConditionsLiftType getLiftType() {
    	return liftType;
    }

    /**
	 * 设置[枚举]升降类型：1-升级规则-UPGRADE、2-降级规则-DEMOTION
	 * 
	 * @param liftType [枚举]升降类型：1-升级规则-UPGRADE、2-降级规则-DEMOTION
	 * @return 当前对象
	 */
    public LiftConditions liftType(LiftConditionsLiftType liftType) {
    	this.liftType = liftType;
    	return this;
    }

	@Override
	public Integer getLiftPoints() {
    	return liftPoints;
    }

    /**
	 * 设置
	 * 
	 * @param liftPoints 
	 * @return 当前对象
	 */
    public LiftConditions liftPoints(Integer liftPoints) {
    	this.liftPoints = liftPoints;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public LiftConditions createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置
	 * 
	 * @param createdBy 
	 * @return 当前对象
	 */
    public LiftConditions createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }
}
